package kn.tool.file;

/*import kn.tool.exception.KnException;
import kn.tool.utils.CcFileDownloadUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

*//**
 * Description: 文件http下载
 *//*

@RestController
@RequestMapping("/common/file")
public class FileHttpDownloadControllerDemo {
    *//**
     * 文件下载
     * @param response http响应对象
     * @throws KnException
     * @throws IOException
     *//*
    @GetMapping("/download")
    public void fileDownload(HttpServletResponse response) throws KnException, IOException {
        // 文件名称
        String templeteFileName = "profile.png";
        // 文件路径
        String templeteFilePath = "image/profile.png";

        // 文件下载
        CcFileDownloadUtil.downloadFileByClassPathResource(templeteFileName, templeteFilePath, response);
    }
}*/
